import request from '@/utils/request'

// 查询博客正文列表
export function listContent(query) {
  return request({
    url: '/blog/content/list',
    method: 'get',
    params: query
  })
}

// 查询博客正文详细
export function getContent(contentId) {
  return request({
    url: '/blog/content/' + contentId,
    method: 'get'
  })
}

// 新增博客正文
export function addContent(data) {
  return request({
    url: '/blog/content',
    method: 'post',
    data: data
  })
}

// 修改博客正文
export function updateContent(data) {
  return request({
    url: '/blog/content',
    method: 'put',
    data: data
  })
}

// 删除博客正文
export function delContent(contentId) {
  return request({
    url: '/blog/content/' + contentId,
    method: 'delete'
  })
}
